<template>
  <el-dialog :visible.sync="visible" v-dialogDrag :title="title" :modal-append-to-body="false" :append-to-body="true" :close-on-click-modal="false" class="tl-dialog" width="1200px" @open="open" @close="close">
  <div class="app-container">
    <div>
      <!--表格渲染-->
      <el-table class="tl-table" ref="mainTable" :height="317" v-loading="loading" :data="datas" @selection-change="doSelectChange" @sort-change="doSortChange" @row-click="doRowClick" row-key="id" border fit :row-class-name="doChangeRowClassName">
        <el-table-column type="index" label="序号" width="55px" align="center"></el-table-column>
				<el-table-column prop="projectname" label="项目名称" width="250px" sortable="custom" sort-by="projectname" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="projectcode" label="项目编号" width="150px" sortable="custom" sort-by="projectcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispoverduetype" label="超期类型" width="100px" sortable="custom" sort-by="overduetype" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="overduecontent" label="超期内容" sortable="custom" sort-by="overduecontent" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<!-- <el-table-column prop="overduereason" label="超期原因" width="150px" sortable="custom" sort-by="overduereason" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column> -->
        <!-- <el-table-column prop="overdueusername" label="超期人员姓名" width="150px" sortable="custom" sort-by="overdueusername" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column> -->
        <!-- <el-table-column prop="overdueusercode" label="超期人员工号" width="150px" sortable="custom" sort-by="overdueusercode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column> -->
      </el-table>
      <!-- 列表分页 -->
      <el-row class="pagebar" ref="pager">
        <el-pagination @size-change="doChangeSize" @current-change="doChangeIndex" :current-page="pageInfo.currentPage" :page-sizes="pageInfo.pageSizes" :total="pageInfo.totalCount" layout="total, sizes, prev, pager, next, jumper" background class="tl-table-pagination"> </el-pagination>
      </el-row>
    </div>
  </div>
  </el-dialog>
</template>

<script>
/** mixins */
import { mixin_list } from '@tapui/mixins/mixin_list'
/** 子组件 */
/** 工具类 */
import { getAction, putAction, postAction, deleteAction } from '@tapui/utils/http'
export default {
  name: 'sdProjectOverdueInfo',
  mixins: [mixin_list],
  components: { },
  data() {
    return {
      description: 'SD项目超期记录表-列表查询',
      urlPrefix: '/sd/projectOverdueInfo/',
      url: {
        // queryCodeList: '/sd/projectOverdueInfo/dataCodeList'
      },
      // 排序参数
      sorterInfo: {
        sidx: 'overduetype',
        sord: 'asc'
      },
      title: "项目超期信息",
      visible: false,
      parentId: 0
    }
  },
  props: {
    projectid: {
      type: String,
      default: ''
    }
  },
  methods: {
    beforeLoadData() {
      if (!this.projectid) {
        return false
      }
      this.queryParam.qry_projectid = this.projectid
      return true
    },
    open() {
      this.doRefresh()
    }
  }
}
</script>

<style scoped></style>

